Einhugur RawBitmap Objo plugin.

Einhugur.RawBitmap Class

A class to handle bitmaps on memory block level without dependency to Objo Graphics functions.

The RawBitmap can handle, RGB, Gray and CMYK color spaces.

The RawBitmap can handle 8bit, 16 bit, and float depths.

The RawBitmap manages color profiles.

Object
   Einhugur.RawBitmap

class Einhugur.RawBitmap

Constructors

Einhugur.RawBitmapConstructs a new 4 channel RawBitmap with a given width and given height.
Einhugur.RawBitmapConstructs a new RawBitmap with a given width, given height and given number of channels.
Einhugur.RawBitmapConstructs a new RawBitmap with a given width, given height, given number of channels and given rowBytes value.

Properties

BitmapFormatReturns the bitmap format.
ChannelsReturns the number of channels in the bitmap.
ColorSpaceReturns the color space of the bitmap.
DepthReturns the depth of the bitmap.
HasAlphaChannelIndicates whether the bitmap has an alpha channel.
HasICCProfileIndicates whether the bitmap has an ICC profile.
HeightReturns the height of the bitmap.
HorizontalResolutionReturns the horizontal resolution of the image. (This can be set if the image was for example read from Jpg)
ICCProfileDataReturns set value of the name of the ICC Color profile.
ICCProfileNameReturns the raw ICC Color profile data if the RawBitmap contains ICC profile.
IsFloatPixelMapIndicates whether the bitmap uses floating-point pixels.
PixelBytesReturns the number of bytes per pixel of the bitmap.
PremultipliedReturns true if the bitmap is known to be premultiplied.
RowBytesReturns the number of bytes per row of the bitmap.
VerticalResolutionReturns the vertical resolution of the image. (This can be set if the image was for example read from Jpg)
WidthReturns the width of the bitmap.

Methods

ClearICCProfileRemoves ICC color profile from the RawBitmap.
CloneClones the RawBitmap and optionally adds alpha channel.
ConvertConverts between RawBitmap formats.
CopyICCColorProfileFromCopies ICC profile from other RawBitmap instance and puts it on this instance of the RawBitmap.
CropCrops the image, returning a new RawBitmap with the result or nothing if no parts of the image were within the Crop parameters.
DisposeReleases unmanaged resources used by the RawBitmap class.
DrawBitmapDraws a RawBitmap into the RawBitmap.
DrawEllipseDraws an ellipse at given location into the RawBitmap with a given color.
DrawLineDraws a line at given location into the RawBitmap with a given color.
DrawLineAntialiasedDraws antialiased line at given location into the RawBitmap with a given color.
DrawPixelDraws a pixel at given location into the RawBitmap with a given color.
DrawRectDraws a rectangle at given location into the RawBitmap with a given color.
FillRectFills a rectangle at given location into the RawBitmap with a given color.
FillRectAlphaDraws only the alpha channel of filled rectangle
PixelGets the color of a pixel in the RawBitmap.
PixelSets the color of a pixel in the RawBitmap.
PixelAlphaGets the alpha value for pixel at given location
PixelAlphaSets the alpha value of a pixel in the RawBitmap.
UnpremultiplyUnpremultiplies the RawBitmap if it is premultiplied.

Supported Platforms:

  • macOS Intel 64 bit
  • macOS Apple Silicon
  • Windows 64 bit
  • Windows ARM 64 bit
  • Linux 64 bit
  • Linux ARM 64 bit